package com.joysuch.wwyt.common.service.impl;

import com.joysuch.wwyt.common.entity.CommonVersion;
import com.joysuch.wwyt.common.mapper.CommonVersionMapper;
import com.joysuch.wwyt.common.service.CommonVersionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zr
 * @since 2021-07-29
 */
@Service
public class CommonVersionServiceImpl extends ServiceImpl<CommonVersionMapper, CommonVersion> implements CommonVersionService {


    @Autowired
    private CommonVersionMapper commonVersionMapper;

    @Override
    public CommonVersion findLatestVersion(String applicationType) {
        return commonVersionMapper.findLatestVersion(applicationType);
    }
}
